const Radio = require('./radio');

const radio = new Radio('music radio', 'FM 106.7');

radio.on('open', (name, frequency) => {
  console.log("\"" + name + "\" " + frequency + " opened");
});

radio.on('close', (name, frequency) => {
  console.log("\"" + name + "\" " + frequency + " closed");
});

radio.play();